package cn.scw.project.goods.domain;

import cn.scw.framework.aspectj.lang.annotation.Excel;
import cn.scw.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 售后对象 g_after_sale
 *
 * @author api
 * @date 2020-05-20
 */
public class GAfterSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 售后方式（退款/换货）——字典表维护 */
    @Excel(name = "售后方式", readConverterExp = "退=款/换货")
    private String type;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 退款说明 */
    @Excel(name = "退款说明")
    private String explain;

    /** 退款说明图片 */
    @Excel(name = "退款说明图片")
    private String explainImgUrl;

    /** 是否同意售后 */
    @Excel(name = "是否同意售后")
    private Boolean isAgree;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createDate=new Date();

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setExplain(String explain)
    {
        this.explain = explain;
    }

    public String getExplain()
    {
        return explain;
    }
    public void setExplainImgUrl(String explainImgUrl)
    {
        this.explainImgUrl = explainImgUrl;
    }

    public String getExplainImgUrl()
    {
        return explainImgUrl;
    }
    public void setIsAgree(Boolean isAgree)
    {
        this.isAgree = isAgree;
    }

    public Boolean getIsAgree()
    {
        return isAgree;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("type", getType())
            .append("phone", getPhone())
            .append("explain", getExplain())
            .append("explainImgUrl", getExplainImgUrl())
            .append("isAgree", getIsAgree())
            .append("note", getNote())
            .toString();
    }
}
